package cn.iocoder.yudao.module.trade.controller.admin.orderverifycode.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;

@Schema(description = "管理后台 - 订单核销码新增/修改 Request VO")
@Data
@Valid
public class OrderVerifyCodeSaveReqVO {

    @Schema(description = "主键，自增长", requiredMode = Schema.RequiredMode.REQUIRED, example = "1426")
    private Long id;

    @Schema(description = "订单Id", example = "13023")
    private Long orderId;

    @Schema(description = "日期")
    private LocalDate date;

    @Schema(description = "4位订单核销码，默认从1001开始累加")
    private Long code;

    /**
     * 店铺ID
     */
    @Schema(description = "4位订单核销码，默认从1001开始累加")
    @NotNull(message = "店铺ID不能为空")
    private Long storeId;

}